package com.zsd.android.opengldemo.charge;

public class ChargeAdapter extends ChinaCharge {

    private USACharge usaCharge;

    public ChargeAdapter(USACharge usaCharge) {
        this.usaCharge = usaCharge;
    }

    @Override
    public void charge() {
        if (usaCharge.charge() == 220) {
            System.out.println("电压正常，可以使用");
        } else {
            System.out.println("电压异常，电器损坏");
        }
    }
}
